import org.restlet.data.MediaType;
import org.softmed.rest.generation.xml.manager.GenericToXML;

conv = new GenericToXML(xmlSuite);
//xml = conv.toXML(object, util, application);

if(queryParameters.getFirst("detailed")==null)
	xml = conv.toXML(object, util,application);
	else
	xml = conv.toXML(object, util,application,"detailed");

response.setEntity(xml,MediaType.APPLICATION_XML);